(function() {
	'strict';
	require(['jquery'], function(jquery) {
		
		var id = $('#subContent').data('row').id;
		
		$("#file_upload").fileinput({
		  language: 'zh', //设置语言  
          uploadUrl: 'notice/upload.service', //上传的地址  
          allowedFileExtensions : ['doc', 'docx', 'pdf'],//接收的文件后缀  
          showUpload: true, //是否显示上传按钮  
          showCaption: false,//是否显示标题  
          browseClass: "btn btn-primary", //按钮样式               
          previewFileIcon: "<i class='glyphicon glyphicon-king'></i>",   
          uploadAsync: false,
          maxFileCount: 1, //表示允许同时上传的最大文件个数
          uploadExtraData:{noticeId:id}
		});
		
	});
})();